<?php
/**
 * Created by PhpStorm.
 * Author: netman
 * Time: 2023/10/18 09:22
 * Desc: 全局搜索
 */
abstract class Contract_Api_Payment
{

    //错误提示
    const ORDERSN_ERROR = '订单错误';
    const ORDERSN_FORMAT_ERROR = '格式错误';
    const ORDERSN_NOT_EXISTS = '订单不存在';
    const ORDERSN_PAYED = '订单已支付';
    const TOKEN_ERROR = '口令错误';
    const POST_ERROR = '提交异常数据';
    const PRODUCT_NOT_EXISTS = '当前订单已失效';
    const ORDERSN_TIME_OUT = '订单的预订时间已超时，请重新下单';
    const ORDERSN_NOT_DEPOT = '订单的库存已不足，请选择其他产品';

    /**
     * 获取支付数据
     * @param $params
     * @return array
     * User: netman
     * Date: 2023/10/20 14:44
     */
    abstract function get_pay_data($params): array;


}